package com.dily.study.demo.controller;

import com.dily.study.demo.entity.mybatisPlus.Student;
import com.dily.study.demo.mapper.StudentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Date: 2022-03-25 星期五
 * Time: 11:30
 * Author: Dily_Su
 * Remark:
 */
@RestController
public class StudentController {

    @Autowired
    private StudentMapper studentMapper;

    @RequestMapping("/")
    public Student enumTest(@RequestBody Student student){
        studentMapper.insert(student);
        return student;
    }
}
